package com.ruoyi.order.feign;

import com.ruoyi.order.domain.JsonData;
import com.ruoyi.order.request.LockCouponRecordRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "ruoyi-coupon")
public interface CouponFeignSerivce {

    @GetMapping("/record/detail/{record_id}")
    JsonData findUserCouponRecordById(@PathVariable("record_id")Long couponRecordId);
    @PostMapping("/record/lock_records")
    JsonData lockCouponRecords(LockCouponRecordRequest lockCouponRecordRequest);
}
